package 创建者模式.单例模式.饿汉式.静态代码块方式;

public class Client {
    public static void main(String[] args) {
        Singleton instance=Singleton.getInstance();
        Singleton instance1=Singleton.getInstance();

        System.out.println(instance1==instance);
    }
}
